package 剑指offer.Month7_07.day17;

public class 坐旋转字符串 {
    public String LeftRotateString(String str,int n) {

        int index = n % str.length();
        String s1 = str.substring(0,index);
        String s2 = str.substring(index,str.length());
        return s2 + s1;
    }
}
